import java.io.*;

public class shixiangTiqu {
    public static void main(String[] args) {
        try {
            InputStream is = new FileInputStream(new File("E:\\年报\\2020年年报_TXT\\000001_2020年年度报告_平安银行_1209224370_2021-02-02~2021-02-02_第1页.txt"));
            BufferedReader br = new BufferedReader(new InputStreamReader(is, "GBK"));//构造一个BufferedReader类来读取文件
            String s;
            while ((s = br.readLine()) != null) {//使用readLine方法，一次读一行
//                result.append(System.lineSeparator() + s);
//                System.out.println(s);
                if(s.contains("name")){
                    System.out.println(s);
                    break;
                }
            }
            br.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
